France declares war on the Republic and occupies the country two years later. The Patriots proclaim the Batavian Republic and the federation of the United Provinces is replaced by a unitary state with the first ever Dutch constitution. This establishes equality of religion and other rights and freedoms.